package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 问诊记录表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("consultations")
@Schema(name = "Consultations", description = "问诊记录表")
public class Consultations extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "问诊单号")
    @TableField("consultation_no")
    private String consultationNo;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "医生ID")
    @TableField("doctor_id")
    private Long doctorId;

    @Schema(description = "类型：1图文问诊，2视频问诊，3语音问诊")
    @TableField("consultation_type")
    private Byte consultationType;

    @Schema(description = "问诊标题")
    @TableField("title")
    private String title;

    @Schema(description = "问题描述")
    @TableField("description")
    private String description;

    @Schema(description = "图片附件，多个用逗号分隔")
    @TableField("images")
    private String images;

    @Schema(description = "问诊费用")
    @TableField("consultation_fee")
    private BigDecimal consultationFee;

    @Schema(description = "状态：0待接诊，1问诊中，2已完成，3已取消，4已退款")
    @TableField("status")
    private Byte status;

    @Schema(description = "开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @Schema(description = "评分：1-5星")
    @TableField("rating")
    private Byte rating;

    @Schema(description = "评价内容")
    @TableField("review")
    private String review;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}